import { action, observable } from 'mobx';
import sessionService from '../services/session/sessionService'
import { GetCurrentLoginInformations } from '../services/session/dto/getCurrentLoginInformations'

class SessionStore {
  @observable currentLogin: GetCurrentLoginInformations = new GetCurrentLoginInformations();

  @action
  async getCurrentLoginInformations() {
    await sessionService.getCurrentLoginInformations().then((res)=>{
        this.currentLogin = res;
    });
  }
}

export default SessionStore;
